package cn.itcast.mq.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 创建队列Bean交给IOC容器管理
 */
@Configuration
public class QueueConfig {
    @Bean
    public Queue ObjectQueue(){
        return new Queue("Object.queue");
    }

    @Bean
    public Queue SimpleQueue(){
        return new Queue("simple.queue1");
    }
}
